#include "../include/RegisterDialog.h"

//(InternalHeaders(RegisterDialog)
#include <wx/button.h>
#include <wx/string.h>
#include <wx/intl.h>
//)

//(*IdInit(RegisterDialog)
const long RegisterDialog::ID_STATICTEXT1 = wxNewId();
const long RegisterDialog::ID_STATICTEXT3 = wxNewId();
const long RegisterDialog::ID_USERNAME = wxNewId();
const long RegisterDialog::ID_REGISTER = wxNewId();
const long RegisterDialog::ID_EMAIL = wxNewId();
//*)

BEGIN_EVENT_TABLE(RegisterDialog,wxDialog)
	//(*EventTable(RegisterDialog)
	//*)
END_EVENT_TABLE()

RegisterDialog::RegisterDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(Initialize(RegisterDialog)
    wxBoxSizer* BoxSizer4;
    wxBoxSizer* BoxSizer3;
	wxBoxSizer* BoxSizer2;
	wxBoxSizer* BoxSizer1;
	wxStdDialogButtonSizer* StdDialogButtonSizer1;

	Create(parent, wxID_ANY, _("Register"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("wxID_ANY"));
	BoxSizer1 = new wxBoxSizer(wxVERTICAL);
	BoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
	BoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
	BoxSizer4 = new wxBoxSizer(wxHORIZONTAL);

	StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("Username: "), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT1"));
	BoxSizer2->Add(StaticText1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	Username = new wxTextCtrl(this, ID_USERNAME, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_USERNAME"));
	BoxSizer2->Add(Username, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);

	StaticText3 = new wxStaticText(this, ID_STATICTEXT3, _("Email: "), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT3"));
	BoxSizer4->Add(StaticText3, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	Email = new wxTextCtrl(this, ID_EMAIL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_EMAIL"));
	BoxSizer4->Add(Email, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);

	StaticText2 = new wxStaticText(this, ID_STATICTEXT1, _("Password: "), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT2"));
	BoxSizer3->Add(StaticText2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	Password = new wxTextCtrl(this, ID_USERNAME, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD, wxDefaultValidator, _T("ID_PASSWORD"));
	BoxSizer3->Add(Password, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);

	BoxSizer1->Add(BoxSizer2, 1, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	BoxSizer1->Add(BoxSizer4, 1, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	BoxSizer1->Add(BoxSizer3, 1, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);


	StdDialogButtonSizer1 = new wxStdDialogButtonSizer();
	StdDialogButtonSizer1->AddButton(new wxButton(this, wxID_OK, wxEmptyString));
	StdDialogButtonSizer1->AddButton(new wxButton(this, wxID_CANCEL, wxEmptyString));
	StdDialogButtonSizer1->Realize();
	BoxSizer1->Add(StdDialogButtonSizer1, 1, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	SetSizer(BoxSizer1);
	BoxSizer1->Fit(this);
	BoxSizer1->SetSizeHints(this);

	//)
}

RegisterDialog::~RegisterDialog()
{
	//(*Destroy(RegisterDialog)
	//*)
}



void RegisterDialog::OnCheckRegisterClick(wxCommandEvent& event){
}
